import { defineStore } from 'pinia';

export type Scss = {
    bgColor: string
    colorRed: string
}
/**
 * 存入参数
 */
export const useCssStore = defineStore('scss', {
    state: () => {  // 存放的就是模块的变量
        return {
            css: {} as Scss,
        }
    },
    actions: {
        setCss(data: any) {
            this.css = data;
        }
    }
});